package student;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.util.Map;

public class Threadst extends Thread {

	Map<String, Student> mp;

	public Threadst(Map<String, Student> mp2) {
		super();
		this.mp = mp2;
	}

	@Override
	public void run() {
		try {
			ObjectOutputStream oos = new ObjectOutputStream(
					new FileOutputStream("D:/ooo.obj"));
			Threadst.sleep(20000);
			oos.writeObject(mp);
			oos.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
